package com.yf.dxapp.module.app.controller.admin.course.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 课程信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CoursePageReqVO extends PageParam {

    @Schema(description = "是否热门")
    private Integer hot;

    @Schema(description = "课程名称")
    private String title;

    @Schema(description = "课程分类", example = "1")
    private Long courseType;

    @Schema(description = "级别名称", example = "26954")
    private Long levelId;

    @Schema(description = "是否上架")
    private Integer shelf;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "发布老师id", example = "5421")
    private Long publisherId;

    @Schema(description = "是否精选")
    private Integer selected;

    @Schema(description = "是否推荐")
    private Integer recommend;

    @Schema(description = "最小用户权限等级")
    private Long minLevelId;

    private Long behaviorUserId;

    private Long id;

}